﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeBehind="Visit.aspx.cs" Inherits="FYP14.Visit1" %>
<%@ Register TagPrefix="DTC" TagName="DateTimeControl" Src="~/DateTimePicker.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="adminpnl" runat="server">
    <script>
        function OpenPatientPopup()
        {
            window.open('PopupPatient.aspx', '1398750908485', 'width=625,height=537,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=0,left=0,top=0');
        }
    </script>
    <script type="text/JavaScript">
        function updateFromChildWindow(updateValue, name)
        {
            document.getElementById('<%= txtPatient.ClientID %>').value = updateValue + " - " + name;
        }
</script>
    <div class="right_content">
        <h2>Visit Information</h2>
    </div>
    <div>
        <table>
            <tr>
                <td>
                    Patient ID
                </td>
                <td>
                    <img src="img/0.png" class="NFTextLeft" />
                    <div class="NFTextCenter">
                        <asp:TextBox ID="txtPatient" runat="server" required CssClass="NFText" ReadOnly></asp:TextBox>
                    </div>
                    <img src="img/0.png" class="NFTextRight" />
                    <a href="#" onclick="OpenPatientPopup();return false;">Select Patient</a>
                </td>
            </tr>
            <tr>
                <td>
                    Appointment
                </td>
                <td>
                    <img src="img/0.png" class="NFTextLeft"/>
                    <div class="NFTextCenter">
                    <asp:DropDownList ID="ddlAppointment" runat="server" CssClass="NFText"></asp:DropDownList>
                        </div>
                    <img src="img/0.png" class="NFTextRight"/>
                </td>
            </tr>
            <tr>
                <td>
                    Visit Date
                </td>
                <td>
                    <DTC:DateTimeControl ID="dtcdate" runat="server" required />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <h4>Visit Note</h4>
                </td>
            </tr>
            <tr>
                <td>
                    Blood Pressure
                </td>
                <td>
                    <img src="img/0.png" class="NFTextLeft"/>
                    <div class="NFTextCenter">
                    <asp:TextBox ID="txtBloodPressure" runat="server" CssClass="NFText" required></asp:TextBox>
                    </div>
                    <img src="img/0.png" class="NFTextRight"/>
                </td>
            </tr>
            <tr>
                <td>
                    Suger
                </td>
                <td>
                    <img src="img/0.png" class="NFTextLeft"/>
                    <div class="NFTextCenter">
                    <asp:TextBox ID="txtSuger" runat="server" CssClass="NFText" required></asp:TextBox>
                    </div>
                    <img src="img/0.png" class="NFTextRight"/>
                </td>
            </tr>
            <tr>
                <td>
                    Height
                </td>
                <td>
                    <img src="img/0.png" class="NFTextLeft"/>
                    <div class="NFTextCenter">
                    <asp:TextBox ID="txtHeight" runat="server" CssClass="NFText" required></asp:TextBox>
                    </div>
                    <img src="img/0.png" class="NFTextRight"/>
                </td>
            </tr>
            <tr>
                <td>
                    Weight
                </td>
                <td>
                    <img src="img/0.png" class="NFTextLeft"/>
                    <div class="NFTextCenter">
                    <asp:TextBox ID="txtWeight" runat="server" CssClass="NFText" required></asp:TextBox>
                    </div>
                    <img src="img/0.png" class="NFTextRight"/>
                </td>
            </tr>            
            <%--<tr>
                <td>
                    Select Disease(s)
                </td>
                <td>
                    <asp:ListBox id="lstdisease" runat="server" SelectionMode="Multiple" style="min-height: 150px;"></asp:ListBox>
                </td>
            </tr>--%>
            <tr>
                <td>
                    Select Medicine(s)
                </td>
                <td>
                    <asp:ListBox id="lstmedicines" runat="server" SelectionMode="Multiple" style="min-height: 150px;" required></asp:ListBox>
                </td>
            </tr>
            <tr>
                <td>
                    Select Lab Test(s)
                </td>
                <td>
                    <asp:ListBox id="lstlabtest" runat="server" SelectionMode="Multiple" style="min-height: 150px;" required></asp:ListBox>
                </td>
            </tr>
            <tr>
                <td>
                    Comments
                </td>
                <td>
                    <div class="NFTextareaTop" style="width: 209px;"><img src="img/0.png" class="NFTextareaTopLeft"></div>
                    <div class="NFTextareaRight" style="height: 76px;">
                        <div class="NFTextareaLeft" style="height: 76px;"></div>
                        <textarea name="comments" id="txtcomments" runat="server" required rows="5" cols="36" class="NFTextarea" style="width: 205px; height: 76px;"></textarea>
                    </div>
                    <div class="NFTextareaBottom" style="width: 209px;"><img src="img/0.png" class="NFTextareaBottomLeft"></div>
                </td>
            </tr>
            <tr>
                <td align="right" colspan="2">
                    <!-- <asp:Button id="btnCancel" Text="Cancel" runat="server" OnClick="btnCancel_Click" /> -->
                    <asp:Button id="btnSave" Text="Save" runat="server" OnClick="btnSave_Click"/>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
